﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="System.aspx.cs" Inherits="Web.Admin.Page_System._System" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Collections" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Web.UI" %>
<%@ Import Namespace="System.Web.UI.WebControls" %>

<!DOCTYPE html>

<%="<!--[if IE 8]> <html class=\"ie8 no-js\"> <![endif]-->"%>
<%="<!--[if IE 9]> <html class=\"ie9 no-js\"> <![endif]-->"%>
<%="<!--[if !IE]><!-->"%>
<html>
<%="<!--<![endif]-->"%>
    <!-- BEGIN HEAD -->

    <head>
        <meta charset="utf-8" />
        <title><%=Evan.Common.CommFun.GetAppSetting("AdminTitle") %> - 后台管理系统</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <!-- #include file="../include/com_res_css.inc" -->
    </head>
    <!-- END HEAD -->

    <body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
        <!-- BEGIN HEADER -->
        
        <!-- #include file="../include/top_bar.inc" -->

        <!-- END HEADER -->
        <!-- BEGIN HEADER & CONTENT DIVIDER -->
        <div class="clearfix"> </div>
        <!-- END HEADER & CONTENT DIVIDER -->
        <!-- BEGIN CONTAINER -->
        <div class="page-container">
            <!-- BEGIN SIDEBAR -->
            
            <!-- #include file="../include/left_menu.inc" -->
            
            <!-- END SIDEBAR -->
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">
                    <!-- BEGIN PAGE HEADER-->
                    <!-- BEGIN THEME PANEL -->
                    <!-- #include file="../include/theme_panel.inc" -->
                    <h3 class="page-title"> 系统管理 </h3>
                    <!-- END PAGE TITLE-->
                    <!-- END PAGE HEADER-->
                    <!-- BEGIN PAGE CONTENT-->

                                    <div class="portlet light bordered">
                                        <div class="portlet-title tabbable-line">

                                            <ul class="nav nav-tabs ">
                                                <li class="active">
                                                    <a href="#tab_1" data-toggle="tab" aria-expanded="true"> 基本信息 </a>
                                                </li>
                                                <li class="">
                                                    <a href="#tab_2" data-toggle="tab" aria-expanded="true"> 站点信息 </a>
                                                </li>
                                                <% if (GlobalConfigModel.Dev) { %>
                                                <li class="">
                                                    <a href="#tab_3" data-toggle="tab" aria-expanded="true"> 站点配置 </a>
                                                </li>
                                                <%}%>
                                            </ul>
                                        
                                            <div class="caption">
                                                <i class="glyphicon glyphicon-cog font-red"></i>
                                                <span class="caption-subject font-red bold uppercase">系统配置管理</span>
                                            </div>

                                        </div>

                                        <div class="tab-content">

                                            <div class="tab-pane active" id="tab_1">
                                                <div class="form">
                                                    <div class="form-horizontal form-row-seperated">
                                                        <div class="form-body">

                                                            <%
                                                                Evan.Model.SysModel.HtmlHelperModel m0 = new Evan.Model.SysModel.HtmlHelperModel { Title = "网站标题", PlaceHoder = "网站标题", Notice = "站点标题 , 一般建议不超过80字符", FieldName = "WebName", FieldVerify = "", MaxLength = 100, FieldType = "input", DefaultValue = "" };
                                                                Evan.Model.SysModel.HtmlHelperModel m1 = new Evan.Model.SysModel.HtmlHelperModel { Title = "网站关键词", PlaceHoder = "网站关键词", Notice = "网站关键词，一般建议不超过100字符", FieldName = "WebKeyWords", FieldVerify = "", MaxLength = 300, FieldType = "textarea", DefaultValue = "" };
                                                                Evan.Model.SysModel.HtmlHelperModel m2 = new Evan.Model.SysModel.HtmlHelperModel { Title = "网站描述", PlaceHoder = "网站描述", Notice = "网站描述，一般建议不超过200字符", FieldName = "WebDescription", FieldVerify = "", MaxLength = 500, FieldType = "textarea", DefaultValue = "" };

                                                                List<Evan.Model.SysModel.HtmlHelperModel> mm = new List<Evan.Model.SysModel.HtmlHelperModel>();
                                                                mm.Add(m0);
                                                                mm.Add(m1);
                                                                mm.Add(m2);
                                                                 
                                                                foreach (Evan.Model.SysModel.HtmlHelperModel item in mm)
                                                                {
                                                                    Response.Write(Evan.Common.HtmlHelper.HtmlBuild(item));
                                                                }
                                                            %>
                                                        
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>


                                            <div class="tab-pane" id="tab_2">
                                                <div class="form">
                                                    <div class="form-horizontal form-row-seperated">
                                                        <div class="form-body">

                                                            <%

                                                                Evan.Model.SysModel.HtmlHelperModel m3 = new Evan.Model.SysModel.HtmlHelperModel { Title = "站点Logo", PlaceHoder = "站点Logo", Notice = "站点Logo", FieldName = "WebLogo", FieldVerify = "", MaxLength = 2000, FieldType = "imgupload", DefaultValue = "" };
                                                                Evan.Model.SysModel.HtmlHelperModel m7_1 = new Evan.Model.SysModel.HtmlHelperModel { Title = "网站域名", PlaceHoder = "网站域名", Notice = "站点域名", FieldName = "WebUrl", FieldVerify = "", MaxLength = 100, FieldType = "input", DefaultValue = "" };
                                                                Evan.Model.SysModel.HtmlHelperModel m4 = new Evan.Model.SysModel.HtmlHelperModel { Title = "备案号", PlaceHoder = "备案号", Notice = "站点备案号", FieldName = "WebCord", FieldVerify = "", MaxLength = 50, FieldType = "input", DefaultValue = "" };
                                                                Evan.Model.SysModel.HtmlHelperModel m5 = new Evan.Model.SysModel.HtmlHelperModel { Title = "版权信息", PlaceHoder = "版权信息", Notice = "版权信息", FieldName = "WebCopyRight", FieldVerify = "", MaxLength = 500, FieldType = "textarea", DefaultValue = "" };
                                                                Evan.Model.SysModel.HtmlHelperModel m6 = new Evan.Model.SysModel.HtmlHelperModel { Title = "第三方代码", PlaceHoder = "第三方代码 , 例如 百度统计、谷歌统计等统计代码以及在线客服代码。", Notice = "第三方代码 , 一般获取的统计代码以及在线客服代码都可直接粘贴 , 支持多个第三方代码", FieldName = "WebStatisticsCode", FieldVerify = "", MaxLength = 0, FieldType = "textarea", DefaultValue = "" };


                                                                mm.Clear();
                                                                mm.Add(m3);
                                                                mm.Add(m7_1);
                                                                mm.Add(m4);
                                                                mm.Add(m5);
                                                                mm.Add(m6);

                                                                foreach (Evan.Model.SysModel.HtmlHelperModel item in mm)
                                                                {
                                                                    Response.Write(Evan.Common.HtmlHelper.HtmlBuild(item));
                                                                }

                                                            %>
                                                        
                                                          

                                                                
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>


                                            <div class="tab-pane" id="tab_3">
                                                <div class="form">
                                                    <div class="form-horizontal form-row-seperated">
                                                        <div class="form-body">

                                                        
                                                            <%
                                                                Dictionary<string,string> WebMode = new Dictionary<string,string>();
                                                                WebMode.Add("1", "伪静态");
                                                                WebMode.Add("2","静态生成");
                                                                Evan.Model.SysModel.HtmlHelperModel m7 = new Evan.Model.SysModel.HtmlHelperModel { Title = "网站模式", PlaceHoder = "是否启用静态生成", Notice = "网站是否启用静态生成 , 建议使用伪静态", FieldName = "WebMode", FieldVerify = "", MaxLength = 100, FieldType = "select", DefaultValue = "1", SelectItem = WebMode };
                                                                //Evan.Model.SysModel.HtmlHelperModel m7_1 = new Evan.Model.SysModel.HtmlHelperModel { Title = "网站域名", PlaceHoder = "网站域名", Notice = "网站域名 , 生成静态的时候用于获取静态页", FieldName = "WebUrl", FieldVerify = "", MaxLength = 100, FieldType = "input", DefaultValue = "" };
                                                                Evan.Model.SysModel.HtmlHelperModel m8 = new Evan.Model.SysModel.HtmlHelperModel { Title = "生成静态页目录", PlaceHoder = "生成静态页目录", Notice = "生成的静态页存放目录 , 默认空 为根目录", FieldName = "WebStaticPath", FieldVerify = "", MaxLength = 100, FieldType = "input", DefaultValue = "" };

                                                                Evan.Model.SysModel.HtmlHelperModel m80 = new Evan.Model.SysModel.HtmlHelperModel { Title = "资源版本号", PlaceHoder = "资源版本号 如:1.01", Notice = "前台样式的版本号(开发者模式下版本号为时间戳，此设置项无效)", FieldName = "Version", FieldVerify = "", MaxLength = 100, FieldType = "input", DefaultValue = "1.01" };

                                                               
                                                                
                                                                mm.Clear();
                                                                mm.Add(m7);
                                                                //mm.Add(m7_1);
                                                                mm.Add(m8);
                                                                mm.Add(m80);

                                                                foreach (Evan.Model.SysModel.HtmlHelperModel item in mm)
                                                                {
                                                                    Response.Write(Evan.Common.HtmlHelper.HtmlBuild(item));
                                                                }
                                                                
                                                            %>

                                                                
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            
                                        </div>


                                        <div class="form-actions form-submit-row">
                                            <div class="form-group">
                                                <label class="control-label col-md-2"></label>
                                                <div class="col-md-6">
                                                    <button type="button" class="btn green submit"><i class="fa fa-check"></i> 提交</button>
                                                </div>
                                            </div>  
                                            <div class="clear"></div>
                                        </div>

                                    </div>

                    
                    <!-- END PAGE CONTENT-->
                </div>
                <!-- END CONTENT BODY -->
            </div>
            <!-- END CONTENT -->
            
        </div>
        <!-- END CONTAINER -->
        <!-- #include file="../include/footer.inc" -->
   <!-- #include file="../include/com_res_js.inc" -->
     <script  type="text/javascript">
         var model = <%=(Evan.Model.ConvertModel.ConvertToJson(Model))%>;
         SetModel(model);
         //model.ClassId=GetQs("classid");
    </script>
    </body>
  
</html>
